package day02;

public class demo3 {
    public static void main(String[] args) {
        year(2024);
    }
    public static void year(int x){
        if (x%400==0|| x%4==0){
            System.out.println("这一年是闰年");
        }else {
            System.out.println("这一年不是闰年");
        }
    }
}
